<?php
	//后台常规设置 控制器
class SetupControl extends checkLogin{
	//
	function index(){
		echo "index";
	}

	//全局参数设置
	function setAll(){
		$file = PATH_APP.'/config/setup.php';
		if(is_file($file)){
			C(include $file);
		}
		$this->display();
	}

    //写入配置文件
    function setConfig() {
        $path = PATH_APP.'/config/setup.php';
        $config = include $path;
        $config = array_merge($config, $_POST);
        if (!filePutArray($config, $path)) {

            $this->error("修改配置文件失败，请修改文件{$path}权限为777");
        } else {
            $this->success("修改成功");
        }
    }

	//邮箱设置
	function setMail(){
		$this->display();
	}
	//上传设置
	function setUpload(){
		echo "setUpload";
	}

	//网站前台导航
	function showNav(){
		echo "showNav";
	}
}
?>